package cn.detu.uu;

import java.io.File;
import java.util.Scanner;

public class Test8 {
    public static void main(String[] args) {
        String str = new Scanner(System.in).nextLine();
        File s = new File(str);
        File[] aa =  s.listFiles();
        long sum = 0;
        for (int i = 0; i <aa.length ; i++) {
        if (aa[i].isFile()) {
           sum=sum+aa[i].length();
        } else if(aa[i].isDirectory()) {
                System.out.println(aa[i].getName());

            }
        }
        System.out.println("文件总大小"+sum);
    }
}
